package com.itheima.stock.api;

import com.itheima.stock.entity.StockBlockRtInfo;
import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@RequestMapping(path = "/api/quot")
public interface StockControllerAPI {

    @GetMapping("/stock/updown/count")
    ResponseResult<UpDownVO<OptionVO>> upDown();

    @GetMapping("/stock/all")
    ResponseResult<PageResult<IncreaseVO>> stockPage(@RequestParam(name = "page", defaultValue = "1") Integer page,
                                                     @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize);


    @GetMapping("/stock/increase")
    ResponseResult<List<IncreaseVO>> stockIncrease();

    @GetMapping("/sector/all")
    ResponseResult<List<SectorAllVO>> sectorAll();


    @GetMapping("/index/all")
     ResponseResult<List<MarketIndexVO>> innerIndexAll();



    @GetMapping(path = "/stock/business/all")
    ResponseResult<List<StockBusiness>> getStockBusiness();



}